﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Sunny.UI;

namespace TestProject
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //首先载入密码校验窗体实例
            frmInputPwsswordDialog pwd_dialog = new frmInputPwsswordDialog();

            DialogResult pwdResult = pwd_dialog.ShowDialog();           
            if (pwdResult == DialogResult.OK)
            {
                //密码验证成功加载主窗体
                Application.Run(new frmMain());
            }
            else
            {
                //验证失败则关闭当前程序进程
                Application.Exit();
            }
        }
    }
}
